package com.example.network.model.entity;

import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.io.Serializable;


/**
 * @author LR
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FileRecord implements Serializable {

    private static final long serialVersionUID = 647483114977684173L;

        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private Integer id;

        private String fileChunkIndexHash;

        private String filename;

        private String filePath;

        private String uptime;

        private String userID;

        private long fileSize;


    public FileRecord(String filename, String filePath, String uptime, String userID,long fileSize,String fileChunkIndexHash) {
        this.filename = filename;
        this.filePath = filePath;
        this.uptime = uptime;
        this.userID = userID;
        this.fileSize = fileSize;
        this.fileChunkIndexHash = fileChunkIndexHash;
    }
}

